package com.cdp.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cdp.common.core.domain.AjaxResult;
import com.cdp.common.core.domain.entity.SysMineralPowder;
import com.cdp.system.dto.SysMineralModelDTO;
import com.cdp.system.mapper.SysMineralPowderMapper;
import com.cdp.system.service.ISysMineralPowderService;
import com.cdp.system.vo.SysMineralPowderVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SysMineralPowderServiceImpl extends ServiceImpl<SysMineralPowderMapper, SysMineralPowder> implements ISysMineralPowderService {




    @Autowired
    private  SysMineralPowderMapper sysMineralPowderMapper;


    @Override
    public Map<String, Object> queryMineralMaxMin() {
        return  sysMineralPowderMapper.queryMineralMaxMin();
    }


    @Override
    public AjaxResult sysMineralPowderService(SysMineralModelDTO sysMineralModelDTO) {

    List<SysMineralPowderVO>  sysMineralPowderVOS=   sysMineralPowderMapper.sysMineralPowderService(sysMineralModelDTO);
        return AjaxResult.success(sysMineralPowderVOS);
    }
}
